<template>
	<view class="content">
		<view class="info-block">
			<image src="@/static/index/success.png" class="img"></image>
			<view class="title">提交成功</view>
			<view class="btn" @click="switchTab('/pages/index/index')">返回首页</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			switchTab(url) {
				uni.switchTab({
					url: url
				})
			}
		},
		onLoad(e) {

		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 30rpx;
		min-height: 100vh;
		background: #F7F6F9;

		.info-block {
			padding: 30rpx;
			height: 80vh;
			border-radius: 20rpx;
			background-color: #fff;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			.img {
				width: 360rpx;
				height: 360rpx;
			}

			.title {
				font-size: 40rpx;
				font-weight: bold;
				margin-top: 30rpx;
				margin-bottom: 260rpx;
			}

			.btn {
				width: 350rpx;
				height: 80rpx;
				display: flex;
				justify-content: center;
				align-items: center;
				background: #FF0032;
				color: #fff;
				font-size: 28rpx;
				border-radius: 40rpx;
				margin-bottom: 60rpx;
			}
		}
	}
</style>